<?php
include_once("../DataProvider.php");
	$id = $_GET['idScreenShoot'];
	$sql = "select * from tbl_games where gameID = " . $id;
	$result = DataProvider::ExecuteQuery($sql);
	$tongsorecord = mysql_num_rows($result);
	if($tongsorecord > 0)
	{
		$row = mysql_fetch_array($result);
		?>
         
       
		
       
        <div  id="aa" style="display:none;" class="imageRow">
        	<div class="set">
       
		<?php 
		$count = 0;
		for($i=1;$i<6;$i++)
		{
			if(!empty($row['img'.$i]))
			{
				$count++;
			}
		}
		
		for($i=1;$i<=$count;$i++)
		{
			if(!empty($row['img'.$i]))
			{
				if($i==1)
				echo'<div class="single first"><a id="21"  href="'.$row["img".$i].'" rel="lightbox[plants]"></a></div>';
				
				 else 
				 if($i != $count)
				echo'<div class="single"><a  href="'.$row["img".$i].'" rel="lightbox[plants]"></a></div>';
				else
				echo'<div class="single last"><a href="'.$row["img".$i].'" rel="lightbox[plants]" ></a></div>';
			}
		}	?>    </div>
        </div>

<?php	}
?>